package com.laowang.form;

import javax.validation.constraints.NotEmpty;

/**
 * Created by Administrator on 2019/1/15.
 */
public class OrderForm {
    @NotEmpty(message = "姓名必填")
    private String name;
    @NotEmpty(message = "买家手机号必填")
    private String phone;
    @NotEmpty(message = "买家地址必填")
    private String address;
    @NotEmpty(message = "openId必填")
    private String openId;
    @NotEmpty(message = "购物车不能为空")
    private String items;

    public OrderForm() {
    }

    public OrderForm(@NotEmpty(message = "姓名必填") String name, @NotEmpty(message = "买家手机号必填") String phone, @NotEmpty(message = "买家地址必填") String address, @NotEmpty(message = "openId必填") String openId, @NotEmpty(message = "购物车不能为空") String items) {
        this.name = name;
        this.phone = phone;
        this.address = address;
        this.openId = openId;
        this.items = items;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "OrderForm{" +
                "name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", openId='" + openId + '\'' +
                ", items='" + items + '\'' +
                '}';
    }
}
